﻿/*******************************************************************************
 * Copyright @ 2017 YunSpace.Framework 版权所有
 * Author: GaoTang
 * Description: YunSpace 快速开发平台
 * Website：http://www.yunspace.com.cn
*********************************************************************************/
#region USING SYSTEM
using MySql.Data.MySqlClient;
using System.Collections.Generic;
using System.Data.Common;
using System.Text;
using YunSpace.Data;
using YunSpace.Domain.Entity.SiteLibraryManage;
using YunSpace.Domain.IRepository.SiteLibraryManage;
#endregion

namespace YunSpace.Repository.SiteLibraryManage
{
    public class SupplierRepository : RepositoryBase<SupplierEntity>, ISupplierRepository
    {
        public List<SupplierEntity> GetSupplierName(string F_Id)
        {
            StringBuilder strSql = new StringBuilder();
            strSql.Append(@"SELECT  d.*
                            FROM    SL_Supplier d
                            WHERE   1 = 1
                                    AND d.F_Id = @F_Id");
            DbParameter[] parameter =
            {
                 new MySqlParameter("@F_Id",F_Id)
            };
            return this.FindList(strSql.ToString(), parameter);
        }
    }
}

